package com.ac.api.qms_quality_standard.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.ac.api.qms_quality_standard.entity.QmsQualityStandard;
import com.ac.api.qms_quality_standard.dao.QmsQualityStandardMapper;
import com.ac.api.qms_quality_standard.service.QmsQualityStandardService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author ry
 * @since 2025-06-16
 */
@Service
public class QmsQualityStandardServiceImpl extends ServiceImpl<QmsQualityStandardMapper, QmsQualityStandard> implements QmsQualityStandardService {

    @Override
    public List<QmsQualityStandard> list(QmsQualityStandard example) {
        return this.list(buildWrapper(example));
    }

    @Override
    public IPage<QmsQualityStandard> page(QmsQualityStandard example, IPage page) {
        return this.page(page,buildWrapper(example));
    }

    /**
     * 构建查询
     *
     * @param example
     * @return
     */
    private QueryWrapper<QmsQualityStandard> buildWrapper(QmsQualityStandard example) {
        QueryWrapper<QmsQualityStandard> wrapper     = new QueryWrapper<>();
        return wrapper;
    }

}
